<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.tjsinfo.tjsoa.common.DateTimeFromConver"%>
<%@page import="com.tjsinfo.tjsoa.worklog.vo.WorkLogMain"%>
<%@page import="com.tjsinfo.tjsoa.common.TestRiQi"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base href="<%=basePath%>"/>
<link href="<%=basePath %>style/txlz7.css" rel="stylesheet" type="text/css" />
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>粮油集团办公自动化协作平台</title>
<link rel="stylesheet" type="text/css" href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" />
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
<script type="text/javascript" >
function tdchick(number)
	{
		document.getElementById('black_over').style.display = "block";
		document.getElementById('addfrom').style.top =  document.body.clientHeight/2;
		document.getElementById('addfrom').style.left = document.body.clientWidth/5;
		document.getElementById('addfrom').style.display = "block";
		document.getElementById('xiugai').style.display = "none" ;
		document.getElementById('shanchu').style.display = "none" ;
	// 	document.getElementById('wcqk').style.display = "none" ;
		document.getElementById('chaxun').style.display = "none" ;
		document.getElementById('tianja').style.display = "inline" ;
		document.getElementById('number').value=number;
		
		
	}
	function tdchick2(number,id)
	{
		
		document.getElementById('black_over').style.display = "block";
		document.getElementById('addfrom').style.top =  document.body.clientHeight/2;
		
		document.getElementById('addfrom').style.left = document.body.clientWidth/5;
		document.getElementById('addfrom').style.display = "block";
		document.getElementById('tianja').style.display = "none" ;
		document.getElementById('worklogid').value  = id;
		document.getElementById('number').value=number;
		
	}
	function tdchick3(number,id)
	{
		document.getElementById('black_over').style.display = "block";
		document.getElementById('addfrom').style.top =  document.body.clientHeight/2;
		document.getElementById('worklogid').value  = id;
		
		document.getElementById('addfrom').style.left = document.body.clientWidth/5;
		document.getElementById('number').value=number;
		document.getElementById('addfrom').style.display = "block";
		document.getElementById('tianja').style.display = "none" ;
		document.getElementById('shanchu').style.display = "none" ;
		document.getElementById('xiugai').style.display = "none" ;
		
	}
	function addWorkLog()
	{
		document.form1.submit();
	}
	function deleteWorkLog()
	{
		
			
		var form1 =  document.getElementById('form1');
	form1.setAttribute('action','<%=basePath%>tjsinfo/tjsoa/worklog/deleteWorkLog.do');
		document.form1.submit();
	}
	function deletefrom()
	{
		qx();
		document.getElementById('black_over').style.display = "block";
			document.getElementById('deletefrom').style.top =  document.body.clientHeight/2;
		document.getElementById('deletefrom').style.left = document.body.clientWidth/5;
		document.getElementById('deletefrom').style.display = "block";
		
	}
	function updateWorkLog()
	{
		var form1 =  document.getElementById('form1');
		form1.setAttribute('action','<%=basePath%>tjsinfo/tjsoa/worklog/selectOneWorkLog.do');
		document.form1.submit();
	}
	function chaxunWorkLog()
	{
		var form1 =  document.getElementById('form1');
		form1.setAttribute('action','<%=basePath%>tjsinfo/tjsoa/worklog/selectWorkLog.do');
		document.form1.submit();
	}
	function qx()
	{
		document.getElementById('black_over').style.display = "none";
		document.getElementById('addfrom').style.display = "none";
		document.getElementById('xiugai').style.display = "inline" ;
		document.getElementById('shanchu').style.display = "inline" ;
		//document.getElementById('wcqk').style.display = "inline" ;
		document.getElementById('chaxun').style.display = "inline" ;
		document.getElementById('tianja').style.display = "inline" ;
		
	}
	function qxdeletefrom()
	{
		document.getElementById('black_over').style.display = "none";
		document.getElementById('deletefrom').style.display = "none";
	}
	
	function selectfrom()
	{
		document.getElementById('selectfrom').style.display = "block";
		document.getElementById('black_over').style.display = "block";
		document.getElementById('selectfrom').style.top =  document.body.clientHeight/2;
		document.getElementById('selectfrom').style.left = document.body.clientWidth/5;
		
	}
	function qxselectfrom()
	{
		document.getElementById('black_over').style.display = "none";
		document.getElementById('selectfrom').style.display = "none";
	}
	function select()
	{
		var keyword = document.getElementById('keyword');
		if(keyword.value == '')
		{
			alert('请输入关键字');
			return;
		}
		document.slectform.submit();
	}
</script>
<style >
	.contact_content {
			display: none;
			position: absolute;
			border: 1px solid #FFF;
			border-bottom:none;
			z-index:1800;
			overflow: auto;
		}
		.black_overlays{
			display: none;
			position: absolute;
			top: 0%;
			left: 0%;
			width: 100%;
			height: 100%;
			background-color: #C1EBFC;
			z-index:1002;
			-moz-opacity: 0.8;
			opacity:.80;
			filter: alpha(opacity=30);
		}
	
</style>
<style>
#container {
		    width:600px;
		    height:300px;
		    border:3px solid #c3daf9;
		}
		
.calendar {
    background-image:url(<%=basePath%>images/icon_64.gif) !important;
}

.blist {
    background-image: url(<%=basePath%>images/icon_64.gif) !important;
}

.bmenu {
    background-image: url(<%=basePath%>images/ju.gif) !important;
}

.menu-title{
    background: #ebeadb url(<%=basePath%>images/icon_64.gif) repeat-x;
    border-bottom:1px solid #99bbe8;
    color:#15428b;
    font:bold 10px tahoma,arial,verdana,sans-serif;
    display:block;
    padding:3px;
}
.lan01{
background: url(images/lanbg01.gif) no-repeat 0 0; width:6px; height:24px;} 
.lan02{
background: url(images/lanbg02.gif) repeat-x; width:99%; height:24px;}            
.lan03{
background: url(images/lanbg03.gif) no-repeat; width:8px; height:24px;}             
.cha{
padding-top:3px}           
</style> 
  </head>
  
  <body>
  	<%
  	session.setAttribute("type","M");
			Date date = (Date)request.getAttribute("yueli");
  			
			Map map = (Map)request.getAttribute("map");
			
			
%>
    <div id="right">
        <div  >
      	<div id="menu" style="margin: 0"></div>
	  </div>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="92%">
          <tr>
            <td width="100%" valign="top" height="100%">
               <div class="contabwd">
                 <div id="plan_month">
                  
                    <!--月记录-->
                    <div class="plan_div02" >
                      <table width="100%" border="0" class="page">
                        <tr>
                          <td width="21%">&nbsp;</td>
                          <td width="14%" align="right"><img src="images/left.gif" /></td>
                          <td width="29%"><strong><%=date.getYear() + 1900 %>年01月01日 至 <%=date.getYear() + 1900 %>年12月31日</strong></td>
                          <td width="19%" align="left"><img src="images/right.gif" /></td>
                          <td width="17%">&nbsp;</td>
                        </tr>
                      </table>
                      <table border="0" cellspacing="0" class="tab_list02">
                        <tr>
                          <th><strong>一月</strong></th>
                          <th><strong>二月</strong></th>
                          <th><strong>三月</strong></th>
                          <th><strong>四月</strong></th>
                          <th><strong>五月</strong></th>
                          <th><strong>六月</strong></th>
                        </tr>
                        <tr>
                          <%
                          if(map.get(1) == null)
                          {
                           %>
                          <td align="center" >
                          <h2>January</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogFrom.do?time=&year=<%=date.getYear()+1900 %>&type=M&number=1">
                          <img src="images/wuyue.gif" />
                          </a>
                          </td>
                           <% 	  
                          }
                          else 
                          {
                        	  WorkLogMain workLogMain = (WorkLogMain)map.get(1);
                        	  if(workLogMain.getStart() == 1)
                        	  {
                        	%>
                           <td class="yellow">
                          <h2>January</h2>
                          <a href="javascript:tdchick2('1','<%=workLogMain.getId() %>')">
                          <img src="images/yzdy.gif" />
                          </a>	
                          </td>
                        	<% 
                        	
                        	  }	  
                        	  else if(workLogMain.getStart() == 2)
                        	  {
                        	%>
                          <td class="blue">
                          <h2>January</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/selectWorkLog.do?id=<%=workLogMain.getId() %>">
                          <img src="images/ycyy.gif" />
                          </a>	
                          </td>
                        	<% 	  
                        	  }	
                        	  else if(workLogMain.getStart() == 3)
                        	  {
                        	%>
                          <td class="green">
                          <h2>January</h2>
                          <img src="images/ywcy.gif" />	
                          </td>
                        	<% 	  
                        	  }	  
                          }
                          %>	
                             <%
                          if(map.get(2) == null)
                          {
                           %>
                          <td align="center" >
                          <h2>February</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogFrom.do?time=&year=<%=date.getYear()+1900 %>&type=M&number=2">
                          <img src="images/wuyue.gif" />
                          </a>
                          </td>
                           <% 	  
                          }
                          else 
                          {
                        	  WorkLogMain workLogMain = (WorkLogMain)map.get(2);
                        	  if(workLogMain.getStart() == 1)
                        	  {
                        	%>
                           <td class="yellow" >
                          <h2>February</h2>
                          <a href="javascript:tdchick2('2','<%=workLogMain.getId() %>')">
                          <img src="images/yzdy.gif" />	
                          </a>
                          </td>
                        	<% 
                        	
                        	  }	  
                        	  else if(workLogMain.getStart() == 2)
                        	  {
                        	%>
                          <td class="blue">
                          <h2>February</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/selectWorkLog.do?id=<%=workLogMain.getId() %>">
                          <img src="images/ycyy.gif" />
                          </a>	
                          </td>
                        	<% 	  
                        	  }	
                        	  else if(workLogMain.getStart() == 3)
                        	  {
                        	%>
                          <td class="green">
                          <h2>February</h2>
                          <img src="images/ywcy.gif" />	
                          </td>
                        	<% 	  
                        	  }	  
                          }
                          %>	
                              <%
                          if(map.get(3) == null)
                          {
                           %>
                          <td align="center" >
                          <h2>March</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogFrom.do?time=&year=<%=date.getYear()+1900 %>&type=M&number=3">
                          <img src="images/wuyue.gif" />
                          </a>
                          </td>
                           <% 	  
                          }
                          else 
                          {
                        	  WorkLogMain workLogMain = (WorkLogMain)map.get(3);
                        	  if(workLogMain.getStart() == 1)
                        	  {
                        	%>
                           <td class="yellow" >
                          <h2>March</h2>
                          <a href="javascript:tdchick2('3','<%=workLogMain.getId() %>')">
                          <img src="images/yzdy.gif" />	
                          </a>
                          </td>
                        	<% 
                        	
                        	  }	  
                        	  else if(workLogMain.getStart() == 2)
                        	  {
                        	%>
                          <td class="blue">
                          <h2>March</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/selectWorkLog.do?id=<%=workLogMain.getId() %>">
                          <img src="images/ycyy.gif" />
                          </a>	
                          </td>
                        	<% 	  
                        	  }	
                        	  else if(workLogMain.getStart() == 3)
                        	  {
                        	%>
                          <td class="green">
                          <h2>March</h2>
                          <img src="images/ywcy.gif" />	
                          </td>
                        	<% 	  
                        	  }	  
                          }
                          %>		
                          <%
                          if(map.get(4) == null)
                          {
                           %>
                          <td align="center" >
                          <h2>April</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogFrom.do?time=&year=<%=date.getYear()+1900 %>&type=M&number=4">
                          <img src="images/wuyue.gif" />
                          </a>
                          </td>
                           <% 	  
                          }
                          else 
                          {
                        	  WorkLogMain workLogMain = (WorkLogMain)map.get(4);
                        	  if(workLogMain.getStart() == 1)
                        	  {
                        	%>
                           <td class="yellow">
                          <h2>April</h2>
                          <a href="javascript:tdchick2('4','<%=workLogMain.getId() %>')">
                          <img src="images/yzdy.gif" />
                          </a>	
                          </td>
                        	<% 
                        	
                        	  }	  
                        	  else if(workLogMain.getStart() == 2)
                        	  {
                        	%>
                          <td class="blue">
                          <h2>April</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/selectWorkLog.do?id=<%=workLogMain.getId() %>">
                          <img src="images/ycyy.gif" />
                          </a>	
                          </td>
                        	<% 	  
                        	  }	
                        	  else if(workLogMain.getStart() == 3)
                        	  {
                        	%>
                          <td class="green">
                          <h2>April</h2>
                          <img src="images/ywcy.gif" />	
                          </td>
                        	<% 	  
                        	  }	  
                          }
                          %>	
                           <%
                          if(map.get(5) == null)
                          {
                           %>
                          <td align="center" >
                          <h2>May</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogFrom.do?time=&year=<%=date.getYear()+1900 %>&type=M&number=5">
                          <img src="images/wuyue.gif" />
                          </a>
                          </td>
                           <% 	  
                          }
                          else 
                          {
                        	  WorkLogMain workLogMain = (WorkLogMain)map.get(5);
                        	  if(workLogMain.getStart() == 1)
                        	  {
                        	%>
                           <td class="yellow" >
                          <h2>May</h2>
                          <a href="javascript:tdchick2('5','<%=workLogMain.getId() %>')">
                          <img src="images/yzdy.gif" />	
                          </a>
                          </td>
                        	<% 
                        	
                        	  }	  
                        	  else if(workLogMain.getStart() == 2)
                        	  {
                        	%>
                          <td class="blue">
                          <h2>May</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/selectWorkLog.do?id=<%=workLogMain.getId() %>">
                          <img src="images/ycyy.gif" />
                          </a>	
                          </td>
                        	<% 	  
                        	  }	
                        	  else if(workLogMain.getStart() == 3)
                        	  {
                        	%>
                          <td class="green">
                          <h2>May</h2>
                          <img src="images/ywcy.gif" />	
                          </td>
                        	<% 	  
                        	  }	  
                          }
                          %>	
                            <%
                          if(map.get(6) == null)
                          {
                           %>
                          <td align="center">
                          <h2>June</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogFrom.do?time=&year=<%=date.getYear()+1900 %>&type=M&number=6">
                          <img src="images/wuyue.gif" />
                          </a>
                          </td>
                           <% 	  
                          }
                          else 
                          {
                        	  WorkLogMain workLogMain = (WorkLogMain)map.get(6);
                        	  if(workLogMain.getStart() == 1)
                        	  {
                        	%>
                           <td class="yellow">
                          <h2>June</h2>
                          <a href="javascript:tdchick2('6','<%=workLogMain.getId() %>')">
                          <img src="images/yzdy.gif" />	
                          </a>
                          </td>
                        	<% 
                        	
                        	  }	  
                        	  else if(workLogMain.getStart() == 2)
                        	  {
                        	%>
                          <td class="blue">
                          <h2>June</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/selectWorkLog.do?id=<%=workLogMain.getId() %>">
                          <img src="images/ycyy.gif" />
                          </a>	
                          </td>
                        	<% 	  
                        	  }	
                        	  else if(workLogMain.getStart() == 3)
                        	  {
                        	%>
                          <td class="green">
                          <h2>June</h2>
                          <img src="images/ywcy.gif" />	
                          </td>
                        	<% 	  
                        	  }	  
                          }
                          %>
                        </tr>
                        <tr>
                          <th><strong>七月</strong></th>
                          <th><strong>八月</strong></th>
                          <th><strong>九月</strong></th>
                          <th><strong>十月</strong></th>
                          <th><strong>十一月</strong></th>
                          <th><strong>十二月</strong></th>
                        </tr>
                        <tr>
                              <%
                          if(map.get(7) == null)
                          {
                           %>
                          <td align="center">
                          <h2>July</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogFrom.do?time=&year=<%=date.getYear()+1900 %>&type=M&number=7">
                          <img src="images/wuyue.gif" />
                          </a>
                          </td>
                           <% 	  
                          }
                          else 
                          {
                        	  WorkLogMain workLogMain = (WorkLogMain)map.get(7);
                        	  if(workLogMain.getStart() == 1)
                        	  {
                        	%>
                           <td class="yellow" >
                          <h2>July</h2>
                          <a href="javascript:tdchick2('7','<%=workLogMain.getId() %>')">
                          <img src="images/yzdy.gif" />	
                          </a>
                          </td>
                        	<% 
                        	
                        	  }	  
                        	  else if(workLogMain.getStart() == 2)
                        	  {
                        	%>
                          <td class="blue">
                          <h2>July</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/selectWorkLog.do?id=<%=workLogMain.getId() %>">
                          <img src="images/ycyy.gif" />
                          </a>	
                          </td>
                        	<% 	  
                        	  }	
                        	  else if(workLogMain.getStart() == 3)
                        	  {
                        	%>
                          <td class="green">
                          <h2>July</h2>
                          <img src="images/ywcy.gif" />	
                          </td>
                        	<% 	  
                        	  }	  
                          }
                          %>	
                          <%
                          if(map.get(8) == null)
                          {
                           %>
                          <td align="center">
                          <h2>August</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogFrom.do?time=&year=<%=date.getYear()+1900 %>&type=M&number=8">
                          <img src="images/wuyue.gif" />
                          </a>
                          </td>
                           <% 	  
                          }
                          else 
                          {
                        	  WorkLogMain workLogMain = (WorkLogMain)map.get(8);
                        	  if(workLogMain.getStart() == 1)
                        	  {
                        	%>
                           <td class="yellow" >
                          <h2>August</h2>
                          <a href="javascript:tdchick2('8','<%=workLogMain.getId() %>')">
                          <img src="images/yzdy.gif" />	
                          </a>
                          </td>
                        	<% 
                        	
                        	  }	  
                        	  else if(workLogMain.getStart() == 2)
                        	  {
                        	%>
                          <td class="blue">
                          <h2>August</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/selectWorkLog.do?id=<%=workLogMain.getId() %>">
                          <img src="images/ycyy.gif" />
                          </a>	
                          </td>
                        	<% 	  
                        	  }	
                        	  else if(workLogMain.getStart() == 3)
                        	  {
                        	%>
                          <td class="green">
                          <h2>August</h2>
                          <img src="images/ywcy.gif" />	
                          </td>
                        	<% 	  
                        	  }	  
                          }
                          %>
                            <%
                          if(map.get(9) == null)
                          {
                           %>
                          <td align="center" >
                          <h2>September</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogFrom.do?time=&year=<%=date.getYear()+1900 %>&type=M&number=9">
                          <img src="images/wuyue.gif"/>
                          </a>
                          </td>
                           <% 	  
                          }
                          else 
                          {
                        	  WorkLogMain workLogMain = (WorkLogMain)map.get(9);
                        	  if(workLogMain.getStart() == 1)
                        	  {
                        	%>
                           <td class="yellow">
                          <h2>September</h2>
                          <a href="javascript:tdchick2('9','<%=workLogMain.getId() %>')">
                          <img src="images/yzdy.gif" />	
                          </a>
                          </td>
                        	<% 
                        	
                        	  }	  
                        	  else if(workLogMain.getStart() == 2)
                        	  {
                        	%>
                          <td class="blue">
                          <h2>September</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/selectWorkLog.do?id=<%=workLogMain.getId() %>">
                          <img src="images/ycyy.gif" />
                          </a>	
                          </td>
                        	<% 	  
                        	  }	
                        	  else if(workLogMain.getStart() == 3)
                        	  {
                        	%>
                          <td class="green">
                          <h2>September</h2>
                          <img src="images/ywcy.gif" />	
                          </td>
                        	<% 	  
                        	  }	  
                          }
                          %>
                               <%
                          if(map.get(10) == null)
                          {
                           %>
                          <td align="center">
                          <h2>October</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogFrom.do?time=&year=<%=date.getYear()+1900 %>&type=M&number=10">
                          <img src="images/wuyue.gif" />
                          </a>
                          </td>
                           <% 	  
                          }
                          else 
                          {
                        	  WorkLogMain workLogMain = (WorkLogMain)map.get(10);
                        	  if(workLogMain.getStart() == 1)
                        	  {
                        	%>
                           <td class="yellow">
                          <h2>October</h2>
                          <a href="javascript:tdchick2('10','<%=workLogMain.getId() %>')">
                          <img src="images/yzdy.gif" />	
                          </a>
                          </td>
                        	<% 
                        	
                        	  }	  
                        	  else if(workLogMain.getStart() == 2)
                        	  {
                        	%>
                          <td class="blue">
                          <h2>October</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/selectWorkLog.do?id=<%=workLogMain.getId() %>">
                          <img src="images/ycyy.gif" />
                          </a>	
                          </td>
                        	<% 	  
                        	  }	
                        	  else if(workLogMain.getStart() == 3)
                        	  {
                        	%>
                          <td class="green">
                          <h2>October</h2>
                          <img src="images/ywcy.gif" />	
                          </td>
                        	<% 	  
                        	  }	  
                          }
                          %>
                                 <%
                          if(map.get(11) == null)
                          {
                           %>
                          <td align="center" >
                          <h2>November</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogFrom.do?time=&year=<%=date.getYear()+1900 %>&type=M&number=11">
                          <img src="images/wuyue.gif" />
                          </a>
                          </td>
                           <% 	  
                          }
                          else 
                          {
                        	  WorkLogMain workLogMain = (WorkLogMain)map.get(11);
                        	  if(workLogMain.getStart() == 1)
                        	  {
                        	%>
                           <td class="yellow" >
                          <h2>November</h2>
                          <a href="javascript:tdchick2('11','<%=workLogMain.getId() %>')">
                          <img src="images/yzdy.gif" />	
                          </a>
                          </td>
                        	<% 
                        	
                        	  }	  
                        	  else if(workLogMain.getStart() == 2)
                        	  {
                        	%>
                          <td class="blue">
                          <h2>November</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/selectWorkLog.do?id=<%=workLogMain.getId() %>">
                          <img src="images/ycyy.gif" />
                          </a>	
                          </td>
                        	<% 	  
                        	  }	
                        	  else if(workLogMain.getStart() == 3)
                        	  {
                        	%>
                          <td class="green">
                          <h2>November</h2>
                          <img src="images/ywcy.gif" />	
                          </td>
                        	<% 	  
                        	  }	  
                          }
                          %>
                          <%
                          if(map.get(12) == null)
                          {
                           %>
                          <td align="center" >
                          <h2>December</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogFrom.do?time=&year=<%=date.getYear()+1900 %>&type=M&number=12">
                          <img src="images/wuyue.gif" />
                          </a>
                          </td>
                           <% 	  
                          }
                          else 
                          {
                        	  WorkLogMain workLogMain = (WorkLogMain)map.get(12);
                        	  if(workLogMain.getStart() == 1)
                        	  {
                        	%>
                           <td class="yellow">
                          <h2>December</h2>
                          <a href="javascript:tdchick2('12','<%=workLogMain.getId() %>')">
                          <img src="images/yzdy.gif" />	
                          </a>
                          </td>
                        	<% 
                        	
                        	  }	  
                        	  else if(workLogMain.getStart() == 2)
                        	  {
                        	%>
                          <td class="blue">
                          <h2>December</h2>
                          <a href="<%=basePath%>tjsinfo/tjsoa/worklog/selectWorkLog.do?id=<%=workLogMain.getId() %>">
                          <img src="images/ycyy.gif" />
                          </a>	
                          </td>
                        	<% 	  
                        	  }	
                        	  else if(workLogMain.getStart() == 3)
                        	  {
                        	%>
                          <td class="green">
                          <h2>December</h2>
                          <img src="images/ywcy.gif" />	
                          </td>
                        	<% 	  
                        	  }	  
                          }
                          %>
                        </tr>
                      </table>
                      <div style="margin:25px; text-align:center"><a href="<%=basePath%>tjsinfo/tjsoa/worklog/workLogMonthModleUp.do?date=<%=DateTimeFromConver.zhuanhuariqi(date)%>"><img src="images/nian01.gif" /></a>&nbsp;&nbsp;&nbsp;
                                                                <a href="<%=basePath%>tjsinfo/tjsoa/worklog/workLogMonthModleDown.do?date=<%=DateTimeFromConver.zhuanhuariqi(date)%>"><img src="images/nian02.gif" /></a>
                    </div>
                    </div>
                    
                </div>
              </div>
            </td>
          </tr>
      </table>
      
</div>
	
	<form action="<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogFrom.do" name="form1" method="post" id="form1">
		   <div style="display: none;" class="contact_content" id="addfrom">
             <table width="478" border="0" cellpadding="0" cellspacing="0" >
               <tr>
                 <td>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="lan01">&nbsp;</td>
                        <td class="lan02">
                          <table width="99%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="5%" align="center" style="padding-top:3px;"><img src="images/m_icon051.gif" /></td>
                                <td width="89%" align="left" style="color:#FFFFFF; font-weight:bold;padding-top:3px;">编辑</td>
                                <td width="6%"><div class="cha"><a href="javascript:qx()"><img src="images/cha.gif" /></a></div></td>
                              </tr>
                           </table>
                        </td>
                        <td class="lan03">&nbsp;</td>
                      </tr>
                  </table>
                 </td>
               </tr>
               <tr>
                 <td height="109" class="zz">
                     <table width="90%" height="80%" border="0" cellspacing="0" cellpadding="0" class="researchtab">
                      <tr>
                        <td width="17%" align="center"><img src="images/bjicon.jpg" /></td>
                        <td width="83%" align="left">如有需要请点击以下按钮</td>
                      </tr>
                      <tr>
                        <td align="center" colspan="2" style="border-top:1px #CFCFD1 solid"><a href="javascript:updateWorkLog()" ><img src="images/xiugai.gif" id="xiugai"/></a>&nbsp;<a href="javascript:deletefrom()" ><img src="images/shanchu.gif" id="shanchu"/></a>&nbsp;<a href="javascript:chaxunWorkLog()" ><img src="images/chaxun.gif" id="chaxun" /></a>&nbsp;<a href="javascript:addWorkLog()" ><img src="images/tianjia.gif" id="tianja"/></a>&nbsp;<a href="javascript:qx()" ><img src="images/qx.gif" id="qx"/></a>
                        </td>
                       </tr>
                    </table>
                 </td>
               </tr>
             </table>
            </div>
            
            
            
             <div style="display: none;" class="contact_content" id="deletefrom">
             <table width="478" border="0" cellpadding="0" cellspacing="0" >
               <tr>
                 <td>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="lan01">&nbsp;</td>
                        <td class="lan02">
                          <table width="99%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="5%" align="center" style="padding-top:3px;"><img src="images/m_icon051.gif" /></td>
                                <td width="89%" align="left" style="color:#FFFFFF; font-weight:bold;padding-top:3px;">编辑</td>
                                <td width="6%"><div class="cha"><a href="javascript:qxdeletefrom()"><img src="images/cha.gif" /></a></div></td>
                              </tr>
                           </table>
                        </td>
                        <td class="lan03">&nbsp;</td>
                      </tr>
                  </table>
                 </td>
               </tr>
               <tr>
                 <td height="109" class="zz">
                     <table width="90%" height="80%" border="0" cellspacing="0" cellpadding="0" class="researchtab">
                      <tr>
                        <td width="17%" align="center"><img src="images/bjicon.jpg" /></td>
                        <td width="83%" align="left">是否要删除您选择的日志,请确认?</td>
                      </tr>
                      <tr>
                        <td align="center" colspan="2" style="border-top:1px #CFCFD1 solid"><a href="javascript:deleteWorkLog()" ><img src="images/qd.gif" />&nbsp;<a href="javascript:qxdeletefrom()" ><img src="images/qx.gif" /></a>
                        </td>
                       </tr>
                    </table>
                 </td>
               </tr>
             </table>
            </div>  
		<input  type="hidden" name="type" value="<%="M"%>"/>
		<input  type="hidden" name="year" value="<%=date.getYear()+1900%>"/>
		<input  type="hidden" name="number" value="0"/>
		<input  type="hidden" name="time" value="" id="time"/>
		<input  type="hidden" name="id" value="" id="worklogid"/>
		
	</form>
   
   <form action="<%=basePath%>tjsinfo/tjsoa/worklog/workLogSelect.do" name="slectform" method="post">
   		 
   		 <div style="display: none;" id="selectfrom" class="contact_content">
             <table width="478" border="0" cellpadding="0" cellspacing="0" >
               <tr>
                 <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td class="lan01">&nbsp;</td>
                            <td class="lan02">
                              <table width="99%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="5%" align="center" style="padding-top:3px;"><img src="images/jing.gif" /></td>
                                    <td width="89%" align="left" style="color:#FFFFFF; font-weight:bold;padding-top:3px;">查询</td>
                                    <td width="6%"><div class="cha"><a href="javascript:qxselectfrom()"><img src="images/cha.gif" /></a></div></td>
                                  </tr>
                               </table>
                            </td>
                            <td class="lan03">&nbsp;</td>
                          </tr>
                     </table>
                 </td>
               </tr>
               <tr>
                 <td height="150" class="zz">
                     <table width="90%" height="90%" border="0" cellspacing="0" cellpadding="0" class="researchtab" >
                      <tr>
                        <td width="18%">类型：</td>
                        <td align="left">
                        <select name="type" class="textinput" >
                        <option value="" >全部</option>
                        <option value="D" selected="selected">日报</option>
                        <option value="W">周报</option>
                        <option value="M">月报</option>
                        <option value="Q">季报</option>
                        <option value="H">半年报</option>
                        <option value="Y">年报</option>
                        </select></td>
                      </tr>
                      <tr>
                        <td>关键字：</td>
                        <td align="left"><input name="keyword" type="text" size="50"/></td>
                      </tr>
                      <tr>
                        <td colspan="2" style="border-top:1px #CFCFD1 solid" height="40"><a href="javascript:select()"><img src="images/chaxun.gif" /></a>
                        </td>
                       </tr>
                   </table>
                 </td>
               </tr>
             </table>
            </div>
   	</form>
                        <div class="black_overlays" style="display: none;" id="black_over"></div>
<script type=text/javascript>
Ext.onReady(function(){
Ext.BLANK_IMAGE_URL="ajaxFramework/ext-2.1/resources/images/default/s.gif";
		var menu = new Ext.menu.Menu({
	        id: 'mainMenu',
	        items: [
	            {
	                text: '添加年报',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/addWorkLogYearFrom.do';
					}
	            },
	            {
	                text: '查看',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/workLogYearModle.do';
					}
	            }
	        ]
	    });
	    
		var menuList = new Ext.menu.Menu({
	        id: 'mainMenuList',
	        items: [
	            {
	                text: '日报',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/workLoglistmode.do?type=D';
					}
	            },
	            {
	                text: '周报',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/workLoglistmode.do?type=W';
					}
	            },
	            {
	                text: '月报',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/workLoglistmode.do?type=M';
					}
	            },
	            {
	                text: '季报',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/workLoglistmode.do?type=Q';
					}
	            },
	            {
	                text: '半年报',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/workLoglistmode.do?type=H';
					}
	            },
	            {
	                text: '年报',
	                handler: function(){
						window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/workLoglistmode.do?type=Y';
					}
	            }
	        ]
	    });
		var tb = new Ext.Toolbar(
			{
				height:25
			}
		);
	
	    tb.render('menu');
		tb.add({
	            text:'<font color="black">日报</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/workLogDateModle.do';
				}
	        
	    },{
	            text:'<font color="black">周报</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/workLogWeekModle.do';
				}
	        
	    },{
	            text:'<font color="black">月报</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/workLogMonthModle.do';
				}
	        
	    },{
	            text:'<font color="black">季报</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/workLogJiDuModle.do';
				}
	        
	    },{
	            text:'<font color="black">半年报</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/workLogHalfYearModle.do';
				}
	        
	    },{
	            text:'<font color="black">年报</font>',
	            iconCls: 'bmenu',  // <-- icon
	            menu: menu  // assign menu by instance
	        
	    },{
	            text:'<font color="black">列表视图</font>',
	            iconCls: 'bmenu',  // <-- icon
	            menu: menuList  // assign menu by instance
	        
	    },
	    {
	            text:'<font color="black">设置默认审批人</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/workLogSetDefineFrom.do';
				}
	    },
	    {
	            text:'<font color="black">查询</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					selectfrom();
				}
	    }<%
	    	
	   %>,{
	            text:'<font color="black">查看他人工作日志</font>',
	            iconCls: 'bmenu',
	        	handler: function(){
					window.location.href='<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLog.do';
				}
	    }<% 		
	    	
	    %>);
		
	}
);
</script>                         
  </body>
</html>
